package com.corpgovernment.common.currency.client;

import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.common.currency.client.dto.req.CurrencyExchangeReqDTO;
import com.corpgovernment.common.currency.client.dto.resp.CurrencyExchangeRespDTO;
import com.corpgovernment.common.currency.client.dto.resp.CurrencyRespDTO;
import com.corpgovernment.common.currency.client.dto.resp.ExchangeTokenRespDTO;
import com.corpgovernment.common.currency.client.dto.resp.GetExchangeInfoRespVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ldma
 * @date 2023/8/27
 */
@Slf4j
@Component
public class BasicManageCurrencyClientFallBack implements BasicManageCurrencyClient {
    @Override
    public JSONResult<String> updateExchangeRate() {
        log.error("【汇率服务异常】openfeign调用失败 updateExchangeRate");
        return null;
    }

    @Override
    public JSONResult<String> updateCurrencyRuleCache() {
        log.error("【汇率服务异常】openfeign调用失败 updateCurrencyRuleCache");
        return null;
    }

    @Override
    public JSONResult<List<CurrencyRespDTO>> listSupportCurrency() {
        log.error("【汇率服务异常】openfeign调用失败 listSupportCurrency");
        return null;
    }

    @Override
    public JSONResult<CurrencyExchangeRespDTO> exchangeCurrency(CurrencyExchangeReqDTO currencyExchangeReqDTO) {
        log.error("【汇率服务异常】openfeign调用失败 exchangeCurrency");
        return null;
    }

    @Override
    public JSONResult<ExchangeTokenRespDTO> getExchangeToken(String exchangeToken) {
        log.error("【汇率服务异常】openfeign调用失败 getExchangeToken");
        return null;
    }

    @Override
    public JSONResult<GetExchangeInfoRespVo> getExchangeInfo(String fromCurrencyCode, String toCurrencyCode) {
        log.error("【汇率服务异常】openfeign调用失败 getExchangeInfo");
        return null;
    }
}
